package com.zhouxiaoge.bridgepattern;

import com.zhouxiaoge.bridgepattern.abstracts.Shape;
import com.zhouxiaoge.bridgepattern.abstractsextends.Circle;
import com.zhouxiaoge.bridgepattern.interfacesImpl.GreenCircle;
import com.zhouxiaoge.bridgepattern.interfacesImpl.RedCircle;

public class BridgePatternDemo {
    public static void main(String[] args) {

        Shape redCircle = new Circle(100, 100, 10, new RedCircle());
        Shape greenCircle = new Circle(100, 100, 10, new GreenCircle());

        redCircle.draw();
        greenCircle.draw();

    }
}
